home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / lib / mntlib44.zoo / mntlib / nice.c < prev    next >
C/C++ Source or Header  |  1993-09-15  |  349b  |  24 lines

  1. /*
  2.  * nice() `emulation' by Dave Gymer
  3.  * I've never been too sure what this should return; my SysV quick
  4.  * ref seems to say "-20 to +19,  or -1 on error". Hmm.
  5.  */
  6.  
  7. #include <errno.h>
  8. #include <mintbind.h>
  9. #include <support.h>
  10.  
  11. extern long __mint;
  12.  
  13. int
  14. nice(p)
  15.     int p;
  16. {
  17.     if (__mint)
  18.         return Pnice(p);
  19.     else {
  20.         errno = EINVAL;
  21.         return -1;
  22.     }
  23. }
  24.